package com.vegetable.modules.entity.wx.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="获取wx用户信息", description="获取wx用户信息")
public class QueryWXPhonePO implements Serializable {
    String sessionKey;
    String signature;
    String rawData;
    @NotBlank(message = "参数异常")
    @ApiModelProperty(value = "获取手机号加密信息", required = true)
    private String encryptedData;

    @NotBlank(message = "参数异常")
    @ApiModelProperty(value = "获取手机号加密信息", required = true)
    private String iv;

    @ApiModelProperty(value = "登录时获取的 code", required = true)
    @NotBlank(message = "code码不能为空")
    private String jsCode;

    private String openId;
}
